﻿#region Copyright and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ucenter
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using UCenter.BusinessContract;

namespace UCenter.ServiceContract
{
    /// <summary>
    /// The interface of friend group service
    /// </summary>
    public interface IFriendGroupService
    {
        /// <summary>
        /// Gets the default groups.
        /// </summary>
        /// <returns></returns>
        List<FriendGroupContract> GetDefaultGroups();

        /// <summary>
        /// Gets the groups by user id.
        /// </summary>
        /// <param name="userID">The user ID.</param>
        /// <returns></returns>
        List<FriendGroupContract> GetGroupsByUserId(int userID);

        /// <summary>
        /// Insert the group.
        /// </summary>
        /// <param name="group">The group.</param>
        void InsertGroup(FriendGroupContract group);

        /// <summary>
        /// Delete the group.
        /// </summary>
        /// <param name="id">The id.</param>
        void DeleteGroup(int id);

        /// <summary>
        /// Update the group.
        /// </summary>
        /// <param name="group">The group.</param>
        void UpdateGroup(FriendGroupContract group);
    }
}
